# coding=utf8

def debug():
    a = 10
    b = 20
    c = a * b + a / (b-20)
    print(c)


def task():
    # 计算数字17的二进制、求和1-100整数、整数1-9的平方
    a = bin(17)
    b = sum(range(1, 101))
    c = [x ** 2 for x in range(10)]
    # 输出结果
    print("17的二进制表示：", a)
    print("求和1+...+100：", b)
    print("求1-9数字的平方（1**2, ..., 9**2）：", c)


if __name__ == '__main__':
    debug()
    task()
